package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.dto.UserJoinChatroomDto;
import com.zf.yichat.model.UserJoinChatroomApply;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserJoinChatroomApplyMapper extends FsMapper<UserJoinChatroomApply> {


    /**
     *
     * @param chatroomId
     * @param userId
     * @param status
     */
    int updateStatusByParam(@Param("chatroomId") String chatroomId,@Param("userId") String userId,@Param("status") String status);

    UserJoinChatroomApply queryApplyForChatroom(@Param("userId") Long userId,@Param("chatroomId") String chatroomId);

    List<UserJoinChatroomDto> selectList();

}